package com.zha.boss.exceptions;

import com.zha.boss.enums.resp.RespCode;
import jakarta.annotation.Resource;
import lombok.Getter;

/**
 * @Author: zha
 * @CreateTime: 2024年09月05日 18:18
 */
@Getter
public class BossException extends RuntimeException {

    private RespCode respCode;
    public BossException() {
        super();
    }

    public BossException(String message) {
        super(message);
    }
    public BossException(RespCode respCode) {
        super(respCode.getMsg());
        this.respCode = respCode;
    }
}
